from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
from .views import ImageCode, SMSCodeView, TestCeleryView, SMSCodeByTokenView

app_name = "verifications"

router = DefaultRouter()
router.register(r'smsCode', SMSCodeView, basename="smsCode")

urlpatterns = [
    url(r'^', include(router.urls)),
    url(r'^testCelery/$',TestCeleryView.as_view(), name="testCelery"),
    url(r"^imageCode/$", ImageCode.as_view(), name="imageCode"),
    url(r"^smsCodeByToken/$", SMSCodeByTokenView.as_view(), name="smsCodeByToken")
]
